<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link type="image/x-icon" rel="shortcut icon" href="__ROOT__/favicon.ico" />
<link rel="stylesheet" type="text/css" href="__CSS__/global.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/article-cat.css" />
<title>文章类型管理-HDCWS后台管理系统</title>
</head>
<body>
<div id="dcWrap">
	<include file="Pub:header" />
	<include file="Pub:menu" />
 	<div id="dcMain">
		<div id="urHere">管理中心<b>&gt;</b><strong>文章分类</strong></div>
		<div id="mainBox">
	    	<h3><a href="{:U('Article/addcat')}" class="actionBtn add">添加分类</a>分类列表</h3>
	        <div id="list">
			    <form name="action" action="{:U('Article/delcat')}">
				    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
				    	<tr>
					      	<th align="left">名称</th>
					      	<th align="left">父类</th>
					      	<th width="120" align="center">导航链接</th>
					      	<th width="50" align="left">排序</th>
					      	<th width="80" align="center">状态</th>
					      	<th width="210" align="center">操作</th>
				     	</tr>
				     	<volist name="list" id="vo">
				      	<tr>
							<td>{$vo.name}</td>
							<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
							<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
							<td>{$vo.sort}</td>
						   	<td align="center">
								<switch name="vo.status">
								<case value="0"><span style="color:#F75557;">禁用</span></case>
								<default /><span style="color:#45BA6C;">启用</span>
								</switch>
						   	</td>
						   	<td align="center">
						   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
				              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
				              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
				              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
				             </td>
				     	</tr>
				     	<notempty name="vo.children">
							<foreach name="vo.children" item="vo">
					      	<tr>
								<td>&emsp;&emsp;{$vo.name}</td>
								<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
								<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
								<td>{$vo.sort}</td>
							   	<td align="center">
									<switch name="vo.status">
									<case value="0"><span style="color:#F75557;">禁用</span></case>
									<default /><span style="color:#45BA6C;">启用</span>
									</switch>
							   	</td>
							   	<td align="center">
							   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
					              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
					              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
					              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
					             </td>
					     	</tr>
					     	<notempty name="vo.children">
								<foreach name="vo.children" item="vo">
						      	<tr>
									<td>&emsp;&emsp;&emsp;&emsp;{$vo.name}</td>
									<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
									<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
									<td>{$vo.sort}</td>
								   	<td align="center">
										<switch name="vo.status">
										<case value="0"><span style="color:#F75557;">禁用</span></case>
										<default /><span style="color:#45BA6C;">启用</span>
										</switch>
								   	</td>
								   	<td align="center">
								   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
						              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
						              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
						              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
						             </td>
						     	</tr>
						     	<notempty name="vo.children">
									<foreach name="vo.children" item="vo">
							      	<tr>
										<td>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;{$vo.name}</td>
										<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
										<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
										<td>{$vo.sort}</td>
									   	<td align="center">
											<switch name="vo.status">
											<case value="0"><span style="color:#F75557;">禁用</span></case>
											<default /><span style="color:#45BA6C;">启用</span>
											</switch>
									   	</td>
									   	<td align="center">
									   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
							              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
							              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
							              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
							             </td>
							     	</tr>
									</foreach>
							     	<notempty name="vo.children">
										<foreach name="vo.children" item="vo">
								      	<tr>
											<td>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;{$vo.name}</td>
											<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
											<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
											<td>{$vo.sort}</td>
										   	<td align="center">
												<switch name="vo.status">
												<case value="0"><span style="color:#F75557;">禁用</span></case>
												<default /><span style="color:#45BA6C;">启用</span>
												</switch>
										   	</td>
										   	<td align="center">
										   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
								              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
								              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
								              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
								             </td>
								     	</tr>
								     	<notempty name="vo.children">
											<foreach name="vo.children" item="vo">
									      	<tr>
												<td>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;{$vo.name}</td>
												<td><empty name="vo.pcname">顶层类<else />{$vo.pcname}</empty></td>
												<td align="center">Article/lists?tid=1&cid={$vo['id']}</td>
												<td>{$vo.sort}</td>
											   	<td align="center">
													<switch name="vo.status">
													<case value="0"><span style="color:#F75557;">禁用</span></case>
													<default /><span style="color:#45BA6C;">启用</span>
													</switch>
											   	</td>
											   	<td align="center">
											   		<a href="__ROOT__/Article/lists?tid={$vo['tid']}&cid={$vo['id']}" target="_blank">前台查看</a> |
									              	<a href="{:U('Article/addcat?id=' . $vo['id'])}">添加子类</a> |
									              	<a href="{:U('Article/editcat?id=' . $vo['id'])}">编辑</a> |
									              	<a href="javascript:void(0)" data-href="{:U('Article/delcat?id=' . $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
									             </td>
									     	</tr>
											</foreach>
								     	</notempty>
										</foreach>
							     	</notempty>
						     	</notempty>
								</foreach>
					     	</notempty>
							</foreach>
				     	</notempty>
				     	</volist>
			    	</table>
			    </form>
	    	</div>
	    	<div class="clear"></div>
	    	<div class="pager">{$pageLink}</div>
	    </div>
	</div>
	<include file="Pub:footer" />
</div>
</body>
</html>